/*
 *  This file is part of ImagePro---simple image processing application.
 *
 *  Copyright (C) 2010  Vladimir Rutsky,
 *                      Konstantin Grigoryev,
 *                      Anton Timofeev.
 *
 *  HLA is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  ImagePro is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with ImagePro.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QDebug>

MainWindow::MainWindow( QWidget *parent )
  : QMainWindow(parent)
  , ui(new Ui::MainWindow)
{
  ui->setupUi(this);

  ui->topHSplitter->setSizes(QList<int>() << 200 << 1);
  ui->bottomHSplitter->setSizes(QList<int>() << 200 << 1);
  ui->mainVSplitter->setSizes(QList<int>() << 100 << 1);
}

MainWindow::~MainWindow()
{
  delete ui;
}

void MainWindow::changeEvent( QEvent *e )
{
  QMainWindow::changeEvent(e);
  switch (e->type())
  {
  case QEvent::LanguageChange:
    ui->retranslateUi(this);
    break;

  default:
    break;
  }
}
